#include "game.hpp"
#include "../score/score.hpp"

Game::Game() {

}

Game::~Game() {

}

void Game::init(Engine *engine) {

}

void Game::cleanup() {

}

void Game::pause() {

}

void Game::resume() {

}

void Game::handleEvents(Engine *engine) {
	sf::Event event;
	if(engine->window.GetEvent(event)) {
		switch(event.Type) {
			case sf::Event::Closed:
			{
				engine->stop();
				break;
			}
			case sf::Event::KeyPressed:
			{
				if(event.Key.Code == sf::Key::Escape)
					engine->changeState(Score::getSingleton());
				break;
			}
			default:
				break;
		}
	}
}

void Game::update(Engine *engine) {

}

void Game::draw(Engine *engine) {

}
